<if condition="$error eq null" >
<form action="" class="form-horizontal" role="form">
  <div class="form-group">
    <label class="col-sm-2 control-label">支付工具</label>
    <div class="col-sm-4">
      <input class="form-control" readonly="readonly" name="name" datatype="*" value="{$productPayApi.cfg.name}">
    </div>
  </div>
  <foreach name="productPayApi.cfg.fields" item="vo" key="k">
  <div class="form-group">
    <label class="col-sm-2 control-label">{$vo.title}</label>
    <div class="col-sm-4">
      <input class="form-control" name="{$vo.name}" datatype="*" value="{$vo.value}">
    </div>
  </div>
  </foreach>
  <div class="form-group">
    <div class="col-sm-offset-2 col-sm-8">
      <input type="hidden" name="id" value="{$productPayApi.id}">
      <input type="hidden" name="tag" value="{$productPayApi.tag}">
      <button type="submit" class="btn btn-primary submit" data-loading-txt="提交中，请稍后……" data-ajax-url="__CONTROLLER__/savePost">保存更改</button>
    </div>
  </div>
</form>
<else/>
{$error}
</if>
